package org.test.vo;

public class Book {
    private int bookid;
    private String bookname;
    private int price;
    private String booktype;
    private String image;
    private String introduction;
    private String author;
    private String  press;
    private int inventory;

    public Book() {
    }

    public Book(int bookid, String bookname, int price, String booktype, String image, String introduction, String author, String press, int inventory) {
        this.bookid = bookid;
        this.bookname = bookname;
        this.price = price;
        this.booktype = booktype;
        this.image = image;
        this.introduction = introduction;
        this.author = author;
        this.press = press;
        this.inventory = inventory;
    }

    public void setBookId(int bookid) {
        this.bookid = bookid;
    }

    public void setBookName(String bookname) {
        this.bookname = bookname;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setBookType(String booktype) {
        this.booktype = booktype;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public int getBookId() {
        return bookid;
    }

    public String getBookName() {
        return bookname;
    }

    public int getPrice() {
        return price;
    }

    public String getBookType() {
        return booktype;
    }

    public String getImage() {
        return image;
    }

    public String getIntroduction() {
        return introduction;
    }

    public String getAuthor() {
        return author;
    }

    public String getPress() {
        return press;
    }

    public int getInventory() {
        return inventory;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookid +
                ", bookName='" + bookname + '\'' +
                ", price=" + price +
                ", bookType='" + booktype + '\'' +
                ", image='" + image + '\'' +
                ", introduction='" + introduction + '\'' +
                ", author='" + author + '\'' +
                ", press='" + press + '\'' +
                ", inventory=" + inventory +
                '}';
    }
}
